package com.xdf.ecommerce.dao;

import com.mybatisflex.core.BaseMapper;
import com.xdf.ecommerce.entity.EcommerceUser;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author chanchaw
 * @create 2025-10-14 21:58
 */
@Repository
public interface EcommerceUserMapper extends BaseMapper<EcommerceUser> {
    @Select("SELECT * FROM t_ecommerce_user WHERE username = #{username} AND `password` = #{password};")
    EcommerceUser get8UsernameAndPassword(@Param("username") String username, @Param("password") String password);
    @Select("SELECT * FROM t_ecommerce_user WHERE username = #{username};")
    List<EcommerceUser> get8Username(@Param("username") String username);
}
